<?php
//System administrator admin menu.

		if (($_SESSION['sesUserName'])&& ($_SESSION['sesUserType'] == "staff")){
				echo "
			addMainItem('','Admin&nbsp;|',64,'right','','',0,0);
				defineSubmenuProperties(120,'right','right',0,0);
					addSubmenuItem('','Graphs','','');		
						defineChildmenuProperties(145,'right','right',0,0); 
						addChildmenuItem('". MenuURL("GraphCustReg") ."','Customer Registrations','_blank','');						
					addSubmenuItem('','Reports','','');		
						defineChildmenuProperties(145,'right','right',0,0); 
						addChildmenuItem('". MenuURL("DisplayOrderGroupedByProduct") ."','Order Grouped By Product','','');
						addChildmenuItem('". MenuURL("DisplayOrderStatusReport") ."','Order Status','','');	   
						addChildmenuItem('". MenuURL("DisplayOrderStatusWithCost", array('boUnitPrice'=>0)) ."','Order with cost','','');
						addChildmenuItem('". MenuURL("DisplayOrderStatusWithCost") ."','Order with cost no price','','');
						addChildmenuItem('". MenuURL("DisplayOrderStatusReportFull") ."','Order Status With details','','');
					addSubmenuItem('','Enter','','');
		                 defineChildmenuProperties(145,'right','right',0,0); 
			                 addChildmenuItem('". MenuURL("EnterCategory") ."','Category','','');  
                 			 addChildmenuItem('". MenuURL("EnterColour") ."','Colour','','');
			                 addChildmenuItem('". MenuURL("EnterCountry") ."','Country','','');
			                 addChildmenuItem('". MenuURL("EnterCourier") ."','Courier','','');
			                 addChildmenuItem('". MenuURL("EnterCustomer") ."','Customer','','');
							 addChildmenuItem('". MenuURL("EnterOrderStatus") ."','OrderStatus','','');
			                 addChildmenuItem('". MenuURL("EnterProduct") ."','Product','','');
			                 addChildmenuItem('". MenuURL("EnterProductColour") ."','ProductColour','','');
			                 addChildmenuItem('". MenuURL("EnterProductSize") ."','ProductSize','','');
			                 addChildmenuItem('". MenuURL("EnterReferrer") ."','Referrer','','');
			                 addChildmenuItem('". MenuURL("EnterSize") ."','Size','','');
			                 addChildmenuItem('". MenuURL("EnterStaff") ."','Staff','','');
			                 addChildmenuItem('". MenuURL("EnterSubCategory") ."','SubCategory','','');
			                 addChildmenuItem('". MenuURL("EnterSubCategoryAndProduct") ."','SubCategoryAndProduct','','');
			                 addChildmenuItem('". MenuURL("EnterSupplier") ."','Supplier','','');
			                 addChildmenuItem('". MenuURL("EnterTitle") ."','Title','','');
			                 addChildmenuItem('". MenuURL("EnterVatRate") ."','VatRate','','');
			                 addChildmenuItem('". MenuURL("EnterYesNo") ."','YesNo','','');
							 addChildmenuItem('". MenuURL("Invoice") ."','Invoice','','');
		             addSubmenuItem('','Search','','');
		                 defineChildmenuProperties(145,'right','right',0,0); 
			                 addChildmenuItem('". MenuURL("SearchCategory") ."','Category','','');
							 addChildmenuItem('". MenuURL("SearchColour") ."','Colour','','');
			                 addChildmenuItem('". MenuURL("SearchCountry") ."','Country','','');
			                 addChildmenuItem('". MenuURL("SearchCourier") ."','Courier','','');
			                 addChildmenuItem('". MenuURL("SearchCustomer") ."','Customer','','');
			                 addChildmenuItem('". MenuURL("SearchOrderHeader") ."','Orders','','');
							 addChildmenuItem('". MenuURL("SearchOrderStatus") ."','Order Status','','');
			                 addChildmenuItem('". MenuURL("SearchProduct") ."','Product','','');
			                 addChildmenuItem('". MenuURL("SearchProductColour") ."','ProductColour','','');
			                 addChildmenuItem('". MenuURL("SearchProductSize") ."','ProductSize','','');
			                 addChildmenuItem('". MenuURL("SearchReferrer") ."','Referrer','','');
			                 addChildmenuItem('". MenuURL("SearchSize") ."','Size','','');
			                 addChildmenuItem('". MenuURL("SearchStaff") ."','Staff','','');
			                 addChildmenuItem('". MenuURL("SearchSubCategory") ."','SubCategory','','');
			                 addChildmenuItem('". MenuURL("SearchSubCategoryAndProduct") ."','SubCategoryAndProduct','','');
			                 addChildmenuItem('". MenuURL("SearchSupplier") ."','Supplier','','');
			                 addChildmenuItem('". MenuURL("SearchTitle") ."','Title','','');
			                 addChildmenuItem('". MenuURL("SearchVatRate") ."','VatRate','','');
			                 addChildmenuItem('". MenuURL("SearchYesNo") ."','YesNo','','');
					addSubmenuItem('','Clean Up','','');
		                 defineChildmenuProperties(145,'right','right',0,0); 
			                 addChildmenuItem('". MenuURL("DeleteProductDiscontinuedNotOrdered") ."','Discontinued products','','');
							 addChildmenuItem('". MenuURL("DeleteSubCategoryAndProduct_ProductDiscontinuedNotOrdered") ."','subcats','','');
				";
		}else{
			echo "addMainItem('','&nbsp;',20,'right','','',0,0);";
		}

?>